﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="assets/css/layui.css">
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="icon" href="/favicon.ico">
    <title>业财税一体化平台</title>
</head>
<body class="layui-layout-body">
    <div id="index_vue" class="layui-layout layui-layout-admin">
        <div class="layui-header custom-header">
            
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item slide-sidebar" lay-unselect>
                    <a href="javascript:;" class="icon-font"><i class="ai ai-menufold"></i></a>
                </li>
            </ul>

            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">GuoYuHang</a>
                    <dl class="layui-nav-child">
<!--                        <dd><a href="">帮助中心</a></dd>-->
                        <dd><a href="javascript:void(0)" v-on:click="quit()">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side custom-admin">
            <div class="layui-side-scroll">

                <div class="custom-logo">
                    <img src="assets/images/logo.png" alt=""/>
                    <h1>业财税一体化平台</h1>
                </div>

                <ul id="Nav" class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe612;</i>
                            <em>合同发票管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="subpage/contract.html">合同管理</a></dd>
                            <dd><a href="subpage/invoice.html">发票管理</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe612;</i>
                            <em>应收管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="subpage/receivable_accrued.html">应收计提</a></dd>
                            <dd><a href="subpage/receivable_bill.html">应收账单</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe612;</i>
                            <em>应付管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="subpage/payable_accrued.html">应付计提</a></dd>
                            <dd><a href="subpage/payable_bill.html">应付账单</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe612;</i>
                            <em>系统设置</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="subpage/system_businessline.html">业务线管理</a></dd>
                            <dd><a href="subpage/system_user.html">用户管理</a></dd>
                            <dd><a href="subpage/system_admin.html">管理员管理</a></dd>
                            <dd><a href="subpage/system_companyaccount.html">公司账户配置</a></dd>
                            <dd><a href="subpage/system_taxrate.html">地区税率配置</a></dd>
                            <dd><a href="views/users.html">用户页面展示</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
             <div class="layui-tab app-container" lay-allowClose="true" lay-filter="tabs">
                <ul id="appTabs" class="layui-tab-title custom-tab"></ul>
                <div id="appTabPage" class="layui-tab-content"></div>
            </div>
        </div>

        <div class="layui-footer">
            <p>© 2021</p>
        </div>

        <div class="mobile-mask"></div>
    </div>
</body>
<script src="assets/layui.js"></script>
<script src="index.js" data-main="home"></script>
<script src="js/jquery.3.2.1.min.js"></script>
<script src="js/vue.dev.js"></script>
<script>
    var v = new Vue({
        el: "#index_vue",
        data:{
            userId: null,
            role: null
        },
        created: function () {
            var userId = localStorage.getItem("userId");
            var role = localStorage.getItem("role");
            if (userId === null || role === null){
                alert("未登录");
                //window.location.href="login.html";
            }

        },
        methods:{
            quit: function (){
                localStorage.clear();
                window.location.href="login.html";
            }
        }
    });
</script>
</html>